package com.liu.project.service;

import com.liu.project.pojo.Feedback;
import com.liu.project.pojo.FeedbackType;

import java.util.List;

public interface FeedbackService {

    List<Feedback> findAll();

    Feedback findOneById(int id);

    Feedback findOneByTitle(String title);

    List<Feedback> findByKey(String key);

    List<Feedback> findByType(int fid);

    List<Feedback> findByTreatment(boolean treatment);

    boolean insertOne1(Feedback feedback);

    boolean insertOne2(FeedbackType feedbackType);

    boolean updateOne(Feedback feedback);

    boolean deleteOne(int id);

    String findTypeByFid(int fid);

    List<FeedbackType>findAllType();
}
